package com.gupao.delegate;

/**
 * @Description: //TODO:
 * @ClassName: delegateTest
 * @Author: msx
 * @CreateDate: 2018/3/29 12:04
 */
public class delegateTest {

    /**
     * 委托模式的使用，日志接口的调用不直接调用JDKProxyLoggerFactory，而是重托一个委托者全权代理
     * @param args
     */
    public static void main(String[] args) {
        LoggerHandleDelegator delegator = new LoggerHandleDelegator();
        delegator.doLogger(new Logger());
    }
}
